package com.aifast.system.sys.entity;

import com.aifast.common.base.BaseEntity;
import com.alibaba.excel.annotation.ExcelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 文件存储对象 sys_file
 *
 * @author fujian
 * @date 2022-08-31
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class SysFile extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 名称
     */
    @ExcelProperty("名称")
    private String name;

    @ExcelProperty("格式")
    private String format;

    /**
     * 大小
     */
    @ExcelProperty("大小")
    private Long size;

    /**
     * 真实存储路径
     */
    @ExcelProperty("真实存储路径")
    private String realPath;

    /**
     * 相对路径
     */
    @ExcelProperty("相对路径")
    private String filePath;

    /**
     * 类型
     */
    @ExcelProperty("类型")
    private String type;

    /**
     * 关联id
     */
    @ExcelProperty("关联id")
    private Long relationId;

    @ExcelProperty("表格名称")
    private String relationTable;

}
